package org.ch02.test00.demo04;

/**
 * @author ZQX
 * @date 2025-03-19
 */
public class Year {
    public int year;

    public Year(int year) {
        this.year = year;
    }

    public String leapYear() {
        if ((year % 4 == 0 && year % 100 != 0) || year % 400 == 0)
            return "是闰年";
        else
            return "是平年";
    }
}
